package com.ruoyi.community.comment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.community.comment.mapper.CommunityCommentMapper;
import com.ruoyi.community.comment.domain.CommunityComment;
import com.ruoyi.community.comment.service.ICommunityCommentService;

/**
 * communitycommentService业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-22
 */
@Service
public class CommunityCommentServiceImpl implements ICommunityCommentService 
{
    @Autowired
    private CommunityCommentMapper communityCommentMapper;

    /**
     * 查询communitycomment
     * 
     * @param id communitycomment主键
     * @return communitycomment
     */
    @Override
    public CommunityComment selectCommunityCommentById(Long id)
    {
        return communityCommentMapper.selectCommunityCommentById(id);
    }

    /**
     * 查询communitycomment列表
     * 
     * @param communityComment communitycomment
     * @return communitycomment
     */
    @Override
    public List<CommunityComment> selectCommunityCommentList(CommunityComment communityComment)
    {
        return communityCommentMapper.selectCommunityCommentList(communityComment);
    }

    /**
     * 新增communitycomment
     * 
     * @param communityComment communitycomment
     * @return 结果
     */
    @Override
    public int insertCommunityComment(CommunityComment communityComment)
    {
        return communityCommentMapper.insertCommunityComment(communityComment);
    }

    /**
     * 修改communitycomment
     * 
     * @param communityComment communitycomment
     * @return 结果
     */
    @Override
    public int updateCommunityComment(CommunityComment communityComment)
    {
        return communityCommentMapper.updateCommunityComment(communityComment);
    }

    /**
     * 批量删除communitycomment
     * 
     * @param ids 需要删除的communitycomment主键
     * @return 结果
     */
    @Override
    public int deleteCommunityCommentByIds(Long[] ids)
    {
        return communityCommentMapper.deleteCommunityCommentByIds(ids);
    }

    /**
     * 删除communitycomment信息
     * 
     * @param id communitycomment主键
     * @return 结果
     */
    @Override
    public int deleteCommunityCommentById(Long id)
    {
        return communityCommentMapper.deleteCommunityCommentById(id);
    }
}
